Release 10.1A: OpenEdge Development:
Progress 4GL Reference


COLOR-TABLE system handle


(Windows only; Graphical interfaces only)

A handle to the current color table.

Note: Does not apply to SpeedScript programming.

Syntax

COLOR-TABLE [ :attribute | :method ] 

attribute

An attribute of the COLOR-TABLE handle.

method

A method of the COLOR-TABLE handle.

Attributes

 

Methods

Example

This procedure sets the number of entries in the color table, makes color i + 1 dynamic, then sets the red, green, and blue values for this entry:

r-colhan.p
DEFINE VARIABLE red AS INTEGER INIT 0.
DEFINE VARIABLE blue AS INTEGER INIT 127.
DEFINE VARIABLE green AS INTEGER INIT 127.
DEFINE VARIABLE i AS INTEGER.

i = COLOR-TABLE:NUM-ENTRIES.
COLOR-TABLE:NUM-ENTRIES = i + 1.
COLOR-TABLE:SET-DYNAMIC(i, yes).
COLOR-TABLE:SET-RED-VALUE(i, red).
COLOR-TABLE:SET-GREEN-VALUE(i, green).
COLOR-TABLE:SET-BLUE-VALUE(i, blue).

DISPLAY COLOR-TABLE:GET-RED-VALUE (i). 
DISPLAY COLOR-TABLE:GET-GREEN-VALUE (i). 
DISPLAY COLOR-TABLE:GET-BLUE-VALUE (i). 

Note: In this procedure, you can replace the SET-RED-VALUE( ),
SET-GREEN-VALUE( ), and SET-BLUE-VALUE( ) methods with the SET-RGB-VALUE( ) method as follows:
COLOR-TABLE:SET-RGB-VALUE(i, RGB-VALUE(red, green, blue)).

Notes

See also

GET-KEY-VALUE statement, PUT-KEY-VALUE statement, SYSTEM-DIALOG COLOR statement, USE statement


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095